package sync

import (
	"gddgame.cc/galaxy/common/dsl/game"
)

const providerName = "sync"

func init() {
	_ = game.RegisterGlobalModule(game.ModuleProvider{
		Name: providerName,

		OnInit: func(env *game.Environment) error {
			var err error
			if _, err = env.RegisterModel(SettingSyncLevelName, &SettingSyncLevel{}); err != nil {
				return err
			}

			return nil
		},
	})
}
